﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Yeap.Config
{
    public static class Constants
    {
        public static class Login
        {
            public const String RememberMeCookieName = "RememberMeCookie";
            public const int AuthenticationExpiryDays = 7;
            public const int RememberMeCookieExpiryDays = 30;
        }

        public static class HtmlParameters
        {
            public const String ReturnUrl = "ReturnUrl";
            public const String LoginString = "Login";
            public const String Password = "Password";
        }

        public static class Controllers
        {
            public const String Account = "Account";
            public const String Default = "Default";
            public const String Home = "Home";
            public const String Widget = "Widget";
            public const String Navigation = "Navigation";
        }

        public static class Actions
        {
            public const String LoginAction = "Login";
            public const String Logout = "Logout";
            public const String Profile = "Profile";
        }

        public static class ExceptionMessages
        {
            public const String RankIsNullException = "Rank cannot be null";
            public const String CourseIsNullException = "Course cannot be null";
            public const String UnknownSiteSetting = "Unknown site setting requested";
            public const String InvalidSiteSettingIntValue = "Site setting value is not a valid number";
            public const String InvalidUserSettingIntValue = "User setting value is not a valid number";
            public const String SiteSettingOverflow = "Site setting value is too large";
            public const String UserSettingOverflow = "User setting is too large";
        }

        public static class SiteSettingKeys
        {
            public const String MinimalCourse = "MinimalCourse";
            public const String MaximalCourse = "MaximalCourse";
            public const String CurrentYear = "CurrentYear";
            public const String InitialYear = "InitialYear";
        }

        public static class UserSettingKeys
        {
            public const String CourseNormPattern = "CourseNorm_{0}";
        }
    }
}